package com.hlmc.service;

import com.hlmc.dao.YunBoDao;
import com.hlmc.entity.Yun_Video;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service("query_yun")
public class YunService implements YunBoDao {
    @Resource
    private YunBoDao yunBoDao;
    @Override
    public int AddYun_video(Yun_Video yun_video) {
        return 0;
    }

    @Override
    public int findTotalNum() {
        int total=0;
        total=yunBoDao.findTotalNum();
        return total;
    }

    @Override
    public List<Yun_Video> findCoverpage(Map<String, Object> map) {

        List<Yun_Video> yun_videoList=new ArrayList<Yun_Video>();
        yun_videoList=yunBoDao.findCoverpage(map);
        return yun_videoList;
    }

    @Override
    public Yun_Video findVideoImage(String image) {
        Yun_Video dt=new Yun_Video();
        dt=yunBoDao.findVideoImage(image);
        return dt;
    }
}
